package cn.submarine;

import javax.swing.*;
import java.util.Random;

public class TorpedoSubmarine extends SeaObject implements EnemyScore{

    public TorpedoSubmarine() {
        super(64,20);
    }

    public void move () {
        x += speed;//向右移动
    }

    public ImageIcon getImage(){
        return Images.torpesubm;
    }

    public int getScore(){
        return 40;//打掉鱼雷潜艇，得40分
    }
}
